/**
*  Copyright 2017  Chinasofti , Inc. All rights reserved.
*/
package com.lexian.mall.user.dao;

import java.util.List;

import com.lexian.mall.user.bean.Trolley;
/**
 * <p>Title: 乐鲜生活</p>
 * <p>Description: 乐鲜生活购物系统</p>
 * <p>Copyright: Copyright (c) 200x</p>
 * <p>Company: 中软国际</p>
 * @author 郝伟
 * @version 1.0
 */
public interface TrolleyDao {
	
	void addCommodityToTrolley(Trolley trolley);

	void updateTrolley(Trolley trolley);
	
	void deleteTrolleyById(Integer id);

	List<Trolley> getTrolleys(String userId);

	double getListPrice(Trolley trolley);
	
	void clearTrolley(String userId);

	Integer hasCommodityInTrolley(Trolley t);
	
}
